package 设计模式.fatoryabs.pizza.pizza.order;


import 设计模式.fatoryabs.pizza.pizza.LDCheesePizza;
import 设计模式.fatoryabs.pizza.pizza.LDGreekPizza;
import 设计模式.fatoryabs.pizza.pizza.Pizza;

public class LDFactory implements AbsFactory {

    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza=null;
        if (orderType.equals("LDcheese")){
            pizza=new LDCheesePizza();
        }else if (orderType.equals("LDgreek")){
            pizza=new LDGreekPizza();
        }
        return pizza;
    }
}
